package main

import "fmt"

type user struct {
	name string
	email string
	ext int
	privileged bool
	}

func main() {

	//array := [...]int{10, 20, 30, 40, 50}


	array := [5]*int{0: new(int), 1: new(int)}
	// 为索引为0 和1 的元素赋值
	*array[0] = 10
	*array[1] = 20

	i := 10

	array[2] = &i

	fmt.Println(*array[2])

	i=12

	fmt.Println(*array[2])

	lisa := user{"Lisa", "lisa@email.com", 123, true}
	fmt.Println(lisa)
}
